
package com.craterhill.java.ems.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.craterhill.java.ems.common.beans.State;
import com.craterhill.java.ems.dao.StateDao;
import com.craterhill.java.ems.service.StateService;

@Service
public class StateServiceImpl implements StateService {

	@Autowired
	private StateDao stateDao;

	@Override
	public List<State> getStates(int countryId) {
		return stateDao.findByCountry(countryId);
	}
}
